﻿@using Sklep.WebUI.HtmlHelpers
@model Sklep.WebUI.Models.ProductListViewModel
@{
    ViewBag.Title = "Produkty";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@foreach(var p in Model.Products)
{
    Html.RenderPartial("ProductSummary", p);
}

<div class="pager">
    @Html.PageLinks(Model.PagingInfo,x=> Url.Action("List",new {page = x}))
</div>

<h2>List</h2>
